<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script>
var setting = {
		check: {
			enable: true
		},
		data: {
			simpleData: {
				enable: true
			}
		}
};  
	  
var treeNodes;
$(document).ready(function(){
	$.ajax({
		type:'GET',
		url:'/MSAPortal/Portalrole/addRole.do',
		contentType : 'application/json',
		dataType : "json",
		success:function(data){
			treeNodes=data;
			ztree = $.fn.zTree.init($("#tree"), setting, treeNodes);
		},
		error:function(){
		 alert("错误");	
		}
	});
	
});
</script>
<div class="col-sm-10">
	<ul id="tree" class="ztree" style="width:460px; overflow:auto;"></ul>
</div>